﻿#Include util.ahk

g := Gui('-Caption +AlwaysOnTop')

g.Show('w400 h400')

; WinSetRegion('100-100 w200 h150', g.Hwnd)

w := 400, h := 400
tl := 20, tt := 30, tr := 20, tb := 10

s1 := Format('0-0 {}-0 {}-{} 0-{} 0-0', w, w, h, h)
s2 := Format('{}-{} {}-{} {}-{} {}-{} {}-{}', tl, tt, w - tl, tt, w - tr, h - tb, tl, h - tb, tl, tt)

WinSetRegion s1 ' ' s2, g.Hwnd

FrameShadow(g.Hwnd)